import Vue from 'vue'
import VueRouter from 'vue-router'
/* import Login from '../views/Login/Login.vue'
import Reg from '../views/Reg/Reg.vue' */
import Login from '@/views/Login/Login.vue'
import Reg from '@/views/Reg/Reg.vue'
import Main from '@/views/Main/Main.vue'

Vue.use(VueRouter)

const routes = [
    {
        name:'reg',
        path:'/reg',
        component:Reg
    },{
        name:'login',
        path:'/login',
        component:Login
    },{
        name:'main',
        path:'/',
        component:Main
    }
]
//创建路由实例
const router = new VueRouter({
  routes
})

//暴露路由实例
export default router
